package com.oa.bean.work;

import java.util.Date;

/*
 * 巡查记录表
 */
public class Patorl {
	private int pid;// 巡查id
	private int dept;// 巡查部门id
	private String ptype;
	private String pclass;// 巡查的班级或宿舍
	private Date pdatetime; // 巡查时间
	private String pdesc;// 情况说明

	private Dept depts;// 一次巡查多个部门

	public Dept getDepts() {
		return depts;
	}

	public void setDepts(Dept depts) {
		this.depts = depts;
	}

	public Patorl() {
	}

	public Patorl(int pid, int dept, String pclass, Date pdatetime, String pdesc) {
		super();
		this.pid = pid;
		this.dept = dept;
		this.pclass = pclass;
		this.pdatetime = pdatetime;
		this.pdesc = pdesc;
	}

	public String getPtype() {
		return ptype;
	}

	public void setPtype(String ptype) {
		this.ptype = ptype;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getDept() {
		return dept;
	}

	public void setDept(int dept) {
		this.dept = dept;
	}

	public String getPclass() {
		return pclass;
	}

	public void setPclass(String pclass) {
		this.pclass = pclass;
	}

	public Date getPdatetime() {
		return pdatetime;
	}

	public void setPdatetime(Date pdatetime) {
		this.pdatetime = pdatetime;
	}

	public String getPdesc() {
		return pdesc;
	}

	public void setPdesc(String pdesc) {
		this.pdesc = pdesc;
	}

	@Override
	public String toString() {
		return "Pator [pid=" + pid + ", dept=" + dept + ", pclass=" + pclass + ", pdatetime=" + pdatetime + ", pdesc="
				+ pdesc + "]";
	}

}
